package com.pengshun.modules.api.coal.result;

import com.fasterxml.jackson.annotation.JsonView;
import com.pengshun.modules.common.ReslutView;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

@Data
public class CoalKLineResult {

    @JsonView({ReslutView.aView.class})
    private Long yearMouth;
    @JsonView({ReslutView.aView.class})
    private BigDecimal startPrice;
    @JsonView({ReslutView.aView.class})
    private BigDecimal endPrice;
    @JsonView({ReslutView.aView.class})
    private BigDecimal maxPrice;
    @JsonView({ReslutView.aView.class})
    private BigDecimal minPrice;
    @JsonView({ReslutView.aView.class})
    private String name;
    @JsonView({ReslutView.aView.class})
    private String xdesc;
    @JsonView({ReslutView.aView.class})
    private String priceUnit;
    @JsonView({ReslutView.aView.class})
    private BigDecimal avgPrice;
    private List<CoalPriceDate> coalPriceDates;

    public String getXdesc() {
        xdesc=xdesc+"月";
        return xdesc;
    }


}
